package org.darkforest.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.HealthUserAppointment;

@DBMapper
public interface HealthUserAppointmentMapper {
    int deleteByPrimaryKey(Integer uaId);

    int insert(HealthUserAppointment record);

    int insertSelective(HealthUserAppointment record);

    HealthUserAppointment selectByPrimaryKey(Integer uaId);

    int updateByPrimaryKeySelective(HealthUserAppointment record);

    int updateByPrimaryKey(HealthUserAppointment record);

    List<HealthUserAppointment> selectListByCondition(HealthUserAppointment record);

    List<HealthUserAppointment> exportListByCondition(HealthUserAppointment record);

    int copyAppointment(@Param("uaId") Integer uaId, @Param("newCheckDate") Integer newCheckDate, @Param("appointmentDate") Integer appointmentDate);

    int cancelAppointmentByUaId(@Param("uaId") Integer uaId, @Param("cancelTime") Integer cancelTime);

    int cancelAppointment(@Param("orgId") Integer orgId, @Param("userId") Integer userId, @Param("cancelTime") Integer cancelTime);
}